{extend name="base" /} {block name="seo"}
<title>积分记录 - {$site.name}</title>
<meta name="keywords" content="{$site.keywords}">
<meta name="description" content="{$site.description}">
{/block}
{block name="css"}
<link href="__HOME__/css/user.css" rel="stylesheet" type="text/css">
{/block}
{block name="body"}
<div class="container">
    <div class="user">
        {include file="index/menu"}


        <div class="user-stow user-box fl">
                <div class="title">
                    积分变动记录

                </div>
                <div class="list">
                    <ul id="page_body_id" style="min-height: 480px">
                    </ul>
                    <p id="page_id" style="text-align: center"></p>
                 </div>


    </div>
</div>

{/block}
{block name="script"}
    <script id="page_template_id" type= "text/html">
        {{# layui.each(d.list, function(index, item){ }}
        <li>
            <time>{{item.create_time}}</time>

            <span> {{item.content}} </span>
            <span style="float: right;margin-left: 15px;">余额：{{item.balance}} </span>
            <span style="float: right">{{#if(item.is_add==1){ }} + {{# }else{ }} -{{# } }}{{item.riches}} </span>

        </li>
        {{# }); }}
    </script>
<script>


        renderPageData( '/api/user/subjects',"page_id", "page_template_id" ,
            "#page_body_id" ,'count',{subject:'riches_log'});


</script>
{/block}
